<?php
require_once '/../Modele/User.php';

/**
 * @access public
 * @author Joana
 * @package Mapping_Dead.Controleur
 */
class User_controleur {
	/**
	 * @AssociationType Mapping Dead.Vue.User_vue
	 * @AssociationMultiplicity 1
	 */
	public $utilise;

	/**
	 * @access public
	 * @param String login
	 * @param String mdp
	 * @param String mail
	 * @ParamType login String
	 * @ParamType mdp String
	 * @ParamType mail String
	 */
	public function inscription($login, $mdp, $mail) {
		$user = new User;
		return $user->inscription($login, $mdp, $mail);
	}

	/**
	 * @access public
	 * @param String login
	 * @param String mdp
	 * @ParamType login String
	 * @ParamType mdp String
	 */
	public function authentification($login, $mdp) {
		$user = new User;
		return $user->authentification($login, $mdp);
	}

	public function verifExisteLogin($login) {
		$user = new User;
		return $user->verifExisteLogin($login);
	}

	public function verifExisteMail($mail) {
		$user = new User;
		return $user->verifExisteMail($mail);
	}

	public function changeUsername($idUser, $newUsername) {
		$user = new User;
		return $user->changeUsername($idUser, $newUsername);
	}

	public function changeMail($username, $newMail) {
		$user = new User;
		return $user->changeMail($username, $newMail);
	}

	public function changePassword($username, $newMdp) {
		$user = new User;
		return $user->changePassword($username, $newMdp);
	}

	public function changeStatut($idUser,$newStatut) {
		$user = new User;
		return $user->changeStatut($idUser,$newStatut);
	}

	public function changeActif($idUser,$newActif) {
		$user = new User;
		return $user->changeActif($idUser,$newActif);
	}

	public function getInfo($id) {
		$user = new User;
		return $user->getInfo($id);
	}

	/**
	 * @access public
	 */
	public static function afficherListeUser() {
		$user = new User;
		return $user->afficherListeUser();
	}

	/**
	 * @access public
	 * @param int idUser
	 * @ParamType idUser int
	 */
	public function bannirUser($idUser) {
		// Not yet implemented
	}

	/**
	 * @access public
	 * @param int isUser
	 * @param int statut
	 * @ParamType isUser int
	 * @ParamType statut int
	 */
	public function modifierStatutUser($isUser, $statut) {
		// Not yet implemented
	}
}
?>